import { axios } from '@/utils/request'

export function shopRuleList (parameter) {
  return axios({
    url: '/upms/shopRule/page',
    method: 'POST',
    data: parameter
  })
}

export function apiAddShopRule (parameter) {
  return axios({
    url: '/upms/shopRule/addShopRule',
    method: 'POST',
    data: parameter
  })
}

export function apiUpdateShopRule (parameter) {
  return axios({
    url: '/upms/shopRule/updateShopRule',
    method: 'PUT',
    data: parameter
  })
}

export function apiDelShopRule (id) {
  return axios({
    url: `/upms/shopRule/delShopRule/${id}`,
    method: 'DELETE'
  })
}
